<div style="display:none">
    <div class="login-box" id="login-dialog">
        <div class="login-top"><a class="current" rel="nofollow" data-name="login">登录</a><a rel="nofollow" data-name="reg">注册</a></div>
        <div class="login-form" id="nav-signin">
            <div class="login-ico">
				{if condition="(!empty($snsconfig['api_qq_key'])) and (!empty($snsconfig['api_qq_secret']))"}
					<a rel="nofollow" class="qq" id="qqlogin" href="{:zanpian_user_url('user/snslogin/qq')}"> QQ </a>
	 			{/if}  
	 			{if condition="(!empty($snsconfig['api_weibo_key'])) and (!empty($snsconfig['api_weibo_secret']))"}
					<a class="sina" rel="nofollow" id="weibologin" href="{:zanpian_user_url('user/snslogin/weibo')}"> 微博 </a>
	 			{/if}
            </div>
            <div class="login-box-form" id="login">
                <form id="loginform" method="post" onsubmit="return false;">
                    <p class="int-text">
                    <input class="email" id="username" name="username" type="text" value="用户名或Email" onfocus="if(this.value=='用户名或Email'){this.value='';}" onblur="if(this.value==''){this.value='用户名或Email';};" ></p>
                    <p class="int-text">
                    <input class="password1" type="password" id="password" name="password"  value="******"  onBlur="if(this.value=='') this.value='******';" onFocus="if(this.value=='******') this.value='';" ></p>
                    {notempty name="userconfig['user_code']"}
                    <p class="int-text1"><span class="inputbox">
                    <input id="validate" name="validate" type="text" value="验证码" onfocus="if(this.value=='验证码'){this.value='';}" onblur="if(this.value==''){this.value='验证码';};"></span><span class="yzm-img"><img src="{:zp_url('user/validate/verify','',false,false)}" alt="看不清楚换一张" id="indexlogin"></p>
                    {/notempty} 
                    <p class="int-info"><label class="ui-label">&nbsp;</label><label for="agreement" class="ui-label-checkbox"><input type="checkbox" name="cookietime" id="cookietime" checked="checked" value="2592000"><input type="hidden" name="notforward" id="notforward" value="1"><input  type="hidden" name="dosubmit" id="dosubmit" value="1">记住我的登录 </label><a rel="nofollow" class="aright" href="{:zanpian_user_url('user/login/forgetpwd')}" target="_blank"> 忘记密码？ </a></p><p class="int-btn"><a rel="nofollow" id="loginbt"  class="loginbtn"><span>登录</span></a></p>
                </form>
            </div>
            <form id="regform" action="{:zanpian_user_url('user/reg/index')}" method="post">
                <div class="login-box-form" style="display: none;" id="reg">
                    <input type="hidden" name="t" id="t"/>
                    <p class="int-text">
                    <input  id="email" name="email" type="text" value="Email" onfocus="if(this.value=='Email'){this.value='';}" onblur="if(this.value==''){this.value='Email';};"></p>
                    <p class="int-text">
                    <input id="uname" name="username" type="text" value="用户名或昵称" onfocus="if(this.value=='用户名或昵称'){this.value='';}" onblur="if(this.value==''){this.value='用户名或昵称';};"></p>
                    <p class="int-text">
                    <input  type="password" id="pwd" name="password" value="******"  onBlur="if(this.value=='') this.value='******';" onFocus="if(this.value=='******') this.value='';"> </p>
                    {notempty name="userconfig['user_code']"}
                    <p class="int-text1"><span class="inputbox">
                    <input id="validate" name="validate" type="text" value="验证码" onfocus="if(this.value=='验证码'){this.value='';}" onblur="if(this.value==''){this.value='验证码';};">
                    </span><span class="yzm-img"><img src="{:zp_url('user/validate/verify','',false,false)}" alt="看不清楚换一张"  id="indexreg"></p>
                    {/notempty} 
                    <p class="int-info"><label><input value="" name="agreement" id="agreement" CHECKED="checked" type="checkbox"> 我已阅读<a rel="nofollow" href="{:zanpian_user_url('user/reg/agreement')}">用户协议</a>及<a rel="nofollow" href="{:zanpian_user_url('user/reg/agreement')}">版权声明</a></label> </p>
                    <p class="int-btn"><input type="hidden" name="dosubmit"/><a rel="nofollow" class="loginbtn"  id="register"><span>注册</span></a></p>
                </div>
            </form>
        </div>
    </div>
</div>